package com.example.d10_homework.homework01;

/**
 * 存钱线程类
 */
public class DepositThread  implements Runnable{
    private Account acc;

    public DepositThread(Account acc) {
        this.acc = acc;
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            acc.deposit(100);
        }
    }
}
